Introduction

This document describes the entire process of running the adaptive following controller with vision based Localization locally on the Gumstix Overo.

On The Gumstix Overo

You will begin by logging into the Overo with ssh 5 times. In the first connection you will want to run roscore. In the second, you will run the irobot create driver. In the third, you will run the adaptive following controller. In the fourth, youi will run the vision based localization node. In the fifth, you will run rosbag to record your data. You will want to enter these commands but not run them just yet.

If you haven't already, make sure to kill the ubuntu_create process on this Create. (for more details see the Setting up Gumstix document)

# First Connection roscore # Second Connection rosrun irobot_create_2_1 driver.py # Third Connection rosrun vision_based_adaptive_following vision_based_adaptive_following_node # Fourth Connection rosrun vision_based_localization vision_based_localization_node # Fifth Connection rosbag record -a -O testname-gumstix.bag

On The Workstation

Open three terminal tabs. In the first tab, you will run roscore. In the second, you will roslaunch vicon and the leader robot controller (Modify the ~/hydro_ws/src/adaptive_following/launch/adaptive_following.launch file to use the robots you are using). In the third, you will run rosbag. You will want to enter these commands but not run them just yet.

# First Tab roscore # Second Tab roslaunch adaptive_following adaptive_following.launch # Third Tab rosbag record -a -O testname-workstation.bag

Running The Test

Execute the commands in this order:

  • Gumstix First Connection
  • Gumstix Second Connection
  • Gumstix Fourth Connection
  • Workstation First Tab
  • Workstation Second Tab (Be Ready to enable power to the leader in the dynamic configure popup)
  • Workstation Third Tab
  • Gumstix Fifth Connection
  • Gumstix Third Connection
  • Enable Power to Leader

Once you are ready to end the test end the rosbags first then end the rest in any order you wish. Copy the test files into a folder under the ~/Tests directory. You can then use the bagtocsv utility to extract the important information.

# in the ~/Tests/testname directory ../bagtocsv testname-worstation.bag testname-gumstix.bag